package com.ruoyi.pms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pms.mapper.DetailTextMapper;
import com.ruoyi.pms.domain.DetailText;
import com.ruoyi.pms.service.IDetailTextService;

/**
 * 富文本测试Service业务层处理
 * 
 * @author yf
 * @date 2022-02-09
 */
@Service
public class DetailTextServiceImpl implements IDetailTextService 
{
    @Autowired
    private DetailTextMapper detailTextMapper;

    /**
     * 查询富文本测试
     * 
     * @param id 富文本测试主键
     * @return 富文本测试
     */
    @Override
    public DetailText selectDetailTextById(Long id)
    {
        return detailTextMapper.selectDetailTextById(id);
    }

    /**
     * 查询富文本测试列表
     * 
     * @param detailText 富文本测试
     * @return 富文本测试
     */
    @Override
    public List<DetailText> selectDetailTextList(DetailText detailText)
    {
        return detailTextMapper.selectDetailTextList(detailText);
    }

    /**
     * 新增富文本测试
     * 
     * @param detailText 富文本测试
     * @return 结果
     */
    @Override
    public int insertDetailText(DetailText detailText)
    {
        return detailTextMapper.insertDetailText(detailText);
    }

    /**
     * 修改富文本测试
     * 
     * @param detailText 富文本测试
     * @return 结果
     */
    @Override
    public int updateDetailText(DetailText detailText)
    {
        return detailTextMapper.updateDetailText(detailText);
    }

    /**
     * 批量删除富文本测试
     * 
     * @param ids 需要删除的富文本测试主键
     * @return 结果
     */
    @Override
    public int deleteDetailTextByIds(Long[] ids)
    {
        return detailTextMapper.deleteDetailTextByIds(ids);
    }

    /**
     * 删除富文本测试信息
     * 
     * @param id 富文本测试主键
     * @return 结果
     */
    @Override
    public int deleteDetailTextById(Long id)
    {
        return detailTextMapper.deleteDetailTextById(id);
    }
}
